/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.stream.IntStream;

/**
 * <p>Project: javaseapp - StringBuilder1
 * <p>Powered by webrx On 2021-08-06 15:06:11
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class StringBuilder1 {
    public static void main(String[] args) {
        var s = new StringBuilder();
        s.append("hello");
        s.append("java");
        s.replace(0, 5, "Welcome"); //hello 替换为Welcome
        s.delete(5, 6);//删除m
        s.reverse();
        System.out.println(s);
        System.out.println(s.toString().toUpperCase());
        //s.indexOf()
        //s.deleteCharAt()
        IntStream scs = s.chars();
        String tel = "13014577033";
        System.out.println(tel);
        System.out.println(new StringBuilder(tel).reverse());

    }
}
